package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    public void add(Setmeal setmeal);

    public void setSetmealAndCheckGroup(Map<String, Integer> map);

    public Page<CheckItem> findByCondition(String queryString);

    public List<Setmeal> findAll();

    public Setmeal findById(Integer id);

    public List<Map> getSetmealReport();

    //编辑套餐
    public void edit(Setmeal setmeal);

    //回写套餐数据
    public Setmeal findSetmealById(Integer id);

    //回写套餐数据第二页
    List<Integer> findSetMealAndCheckGroup(Integer id);

    //删除套餐数据
    public void deleteById(Integer id);

    void delete(Integer id);


    List<Order> findOrderById(Integer id);
}
